#ifndef TEXTURE_H
#define TEXTURE_H

// texture manager
class TextMan
{
public:
								TextMan( const std::string& path = std::string() );
	bool						Get( const std::string& name, unsigned int *id );
	void						SetPath( const std::string& path );
	
private:
	bool						Load( const std::string& name, unsigned int *id );
	//
	typedef std::map< std::string, unsigned int > Textures;
	//
	Textures					textures;
	std::string					path;	
};

CG_INLINE TextMan::TextMan( const std::string& path )
{
	SetPath( path );
}

CG_INLINE void TextMan::SetPath( const std::string& path )
{
	this->path = path;
}

#endif